from django.contrib import admin
from cab.models import *

class LanguageAdmin(admin.ModelAdmin):
    fieldsets =(
                ('Language information',
                 {
                  'fields': ('name', 'language_code')
                  },
                 ),
                 ('File type information',
                  {
                   'fields': ('file_extension', 'mime_type')
                   }
                  ),
                )
admin.site.register(Language, LanguageAdmin)


#admin.site.register(Tag)


class SnippetAdmin(admin.ModelAdmin):
    fieldsets = (
                 ('Metadata',
                  {
                   'fields': ('title', 'language', 'author', 'tags', 'original')
                   }
                  ),
                  ('Content',
                   {
                    'fields': ('description', 'code')
                    }
                   ),
                 )
admin.site.register(Snippet, SnippetAdmin)


admin.site.register(Rating)

admin.site.register(Bookmark)